import Mock from 'mockjs'
let data = []
const count = 10;

data = []
for (let i = 0; i < count; i++) {
    data.push(Mock.mock({
        id: Mock.Random.guid(),
        name: Mock.Random.cname(),
        content: Mock.Random.cparagraph(0, 20),
        img: [
            Mock.Random.image('300x250', '#02adea', 'Hello'),
            Mock.Random.image('300x600', '#02adea', 'world'),
            Mock.Random.image('120x60', '#fb0a2a')
        ],
        like: Mock.Random.natural(0, 100000),
        rate: Mock.Random.natural(1, 10),
        discuss: [
            {
                name: Mock.Random.cname(),
                data: Mock.Random.cparagraph(1, 5)
            },
            {
                name: Mock.Random.cname(),
                data: Mock.Random.cparagraph(1, 5)
            },
            {
                name: Mock.Random.cname(),
                data: Mock.Random.cparagraph(1, 5)
            },
            {
                name: Mock.Random.cname(),
                data: Mock.Random.cparagraph(1, 5)
            },
            {
                name: Mock.Random.cname(),
                data: Mock.Random.cparagraph(1, 5)
            },
        ]
    }))
}

export default data